document.addEventListener('DOMContentLoaded', () => {
    // 移动端菜单切换
    const mobileBtn = document.querySelector('.mobile-menu-btn');
    const navMenu = document.querySelector('.nav-menu');

    mobileBtn.addEventListener('click', () => {
        navMenu.style.display = navMenu.style.display === 'flex' ? 'none' : 'flex';
    });

    // 卡片交互效果
    document.querySelectorAll('.card').forEach(card => {
        card.addEventListener('mouseover', () => {
            card.style.boxShadow = '0 5px 15px rgba(0,0,0,0.2)';
        });
        
        card.addEventListener('mouseout', () => {
            card.style.boxShadow = '0 2px 5px rgba(0,0,0,0.1)';
        });
    });

    // 轮播图初始化（需配合第三方库使用）
    // 动态内容加载示例
    // fetch('data.json')
    //   .then(response => response.json())
    //   .then(data => renderContent(data));
});